"""
URL configuration for One2Many app.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path
from One2Many import views

app_name = 'One2Many'

urlpatterns = [
    # 添加用户类型
    path('add_user_type/', views.add_user_type, name='add_user_type'),
    # 添加用户
    path('add_user/', views.add_user, name='add_user'),
    # 删除用户
    path('del_user/', views.del_user, name='del_user'),
    # 删除用户类型
    path('del_user_type/', views.del_user_type, name='del_user_type'),
    # 修改用户类型
    path('update_user_type/', views.update_user_type, name='update_user_type'),
    # 修改用户
    path('update_user/', views.update_user, name='update_user'),
    # 查找操作
    path('get_user/', views.get_user, name='get_user'),

]


